QT       += core gui network

macx{# 指定macos平台
    ICON = images/astronaut.icns
}

win32{# 指定windows平台
    RC_ICONS = images/astronaut.ico
}

contains(QT_ARCH, x86_64){
        DEFINES += BIT_64
}

mingw {
    QMAKE_CXXFLAGS_RELEASE += -O3
    DEFINES += MINGW
}

msvc {
    QMAKE_CFLAGS += /utf
    QMAKE_CXXFLAGS += /utf-8
    DEFINES += MSVC
}

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17



# CONFIG += console

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    configsetting.cpp \
    curveconfigprocess.cpp \
    dataprocess.cpp \
    deviceprocess.cpp \
    devicewidget.cpp \
    dialogdeviceselect.cpp \
    general.cpp \
    getcommons.cpp \
    legendlabel.cpp \
    logcapturedialog.cpp \
    logprocess.cpp \
    main.cpp \
    dataanalyzer.cpp \
    maindrawwidget.cpp \
    mymenu.cpp \
    mytextbrowser.cpp \
    mywidget.cpp \
    odmstransferdialog.cpp \
    optionsdialog.cpp \
    protocolprocess.cpp \
    rulerwidget.cpp \
    savelogthread.cpp \
    target.cpp \
    udpmsgprocess.cpp

HEADERS += \
    cglobals.h \
    configsetting.h \
    curveconfigprocess.h \
    dataanalyzer.h \
    dataprocess.h \
    deviceprocess.h \
    devicewidget.h \
    dialogdeviceselect.h \
    general.h \
    getcommons.h \
    legendlabel.h \
    logcapturedialog.h \
    logprocess.h \
    maindrawwidget.h \
    mymenu.h \
    mytextbrowser.h \
    mywidget.h \
    odmstransferdialog.h \
    optionsdialog.h \
    protocolprocess.h \
    rulerwidget.h \
    savelogthread.h \
    target.h \
    udpmsgprocess.h

FORMS += \
    configsetting.ui \
    dataanalyzer.ui \
    devicewidget.ui \
    dialogdeviceselect.ui \
    logcapturedialog.ui \
    mywidget.ui \
    odmstransferdialog.ui \
    optionsdialog.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


RESOURCES += \
    images.qrc

TARGET = ODAT


